package edu.univercidade.tcc.sap.ejb;

import static javax.ejb.ConcurrencyManagementType.CONTAINER;

import javax.annotation.PostConstruct;
import javax.ejb.ConcurrencyManagement;
import javax.ejb.EJB;
import javax.ejb.Singleton;
import javax.ejb.Startup;

@Singleton
@ConcurrencyManagement(CONTAINER)
@Startup
public class StartupService implements StartupServiceLocal{
		
	@EJB
	UserServiceLocal userService;
	
	@PostConstruct
	public void startup() {
		userService.createUser("admin", "admin", "Administrador", "SAP", "administrador.sap@mail.com");
	}
}
